SpreadsheetGear 2023
OpenFromMemory(Byte[],String) Method


View with Navigation Tools
SpreadsheetGear Namespace > IWorkbooks Interface > OpenFromMemory Method : OpenFromMemory(Byte[],String) Method
The buffer to open the workbook from.
The password to use when opening the workbook.
Open an existing workbook in a newly created instance of IWorkbook.
Syntax
'Declaration
 
Overloads Function OpenFromMemory( _
   ByVal buffer() As System.Byte, _
   ByVal password As System.String _
) As IWorkbook
 
'Usage
 
Dim instance As IWorkbooks
Dim buffer() As System.Byte
Dim password As System.String
Dim value As IWorkbook
 
value = instance.OpenFromMemory(buffer, password)

Parameters

buffer
The buffer to open the workbook from.
password
The password to use when opening the workbook.

Return Value

The opened workbook.
Remarks
The various workbook settings which make a workbook read-only in an end user workbookSet have no affect at this level. These settings are available as IWorkbook properties.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IWorkbooks Interface
IWorkbooks Members
Overload List
OpenFromMemory(Byte[]) Method
Save Method
SaveAs(String,FileFormat,String) Method
SaveToMemory(FileFormat,String) Method
SaveToStream(Stream,FileFormat,String) Method
Open(String,String) Method
OpenFromStream(Stream,String) Method